<?php
/**
 * Anniversary.php
 * 文件描述 纪念日控制器
 * Created on 2020/8/31 11:46
 * Created by 刘小龙 595929049@qq.com
 */

namespace app\xiangji\controller;


use app\Request;
use app\xiangji\BaseController;
use app\xiangji\services\LoveScoreRankService;
use app\xiangji\services\LoveScoreService;
use app\xiangji\services\QuestionService;
use think\App;

class LoveScore extends BaseController
{
    private $loveScoreService;

    public function __construct(LoveScoreService $loveScoreService)
    {
        $this->loveScoreService = $loveScoreService;
    }

    public function getUserLoveScore()
    {
        $result = $this->loveScoreService->getUserLoveScore();
        return $this->success($result);
    }

    public function top100(Request $request)
    {
        $result = (new LoveScoreRankService())->top100($request);
        return $this->success($result);
    }

    public function selfRank()
    {
        $result = (new LoveScoreRankService())->selfRank();
        return $this->success($result);
    }

    public function sendBless(Request $request)
    {
        $result = (new LoveScoreRankService())->sendBless($request);
        return $this->success($result);
    }
}
